package ge.modules.events;

import ge.lowlevel.EventEngine;
import ge.modules.Module;

public class EventTrackListener implements Module 
{

	public EventTrackListener()
	{
		
	}
	/**
	 * 	Ask at the EventTrack with that id if 
	 * 	its event is now activated.
	 * @param id Identify of the track
	 * @return True if it is activate
	 */
	public boolean activated(int id)
	{
		 EventTrackGenerator e = (EventTrackGenerator) EventEngine.get().ask("activated",id);
		 if( e != null)
			 return e.activate();
		 return false;
		
	}
	@Override
	public void update() 
	{
	}

	@Override
	public void draw() 
	{
	}
	@Override
	public void delete() {
		// TODO Auto-generated method stub
		
	}

}
